<template>
<!--  <div>-->
  <div style="margin-top: -40px;">
    <el-menu :default-active="this.$route.path" router class="el-menu-demo" mode="horizontal" @select="handleSelect"
             text-color="#545c64" active-text-color="#FF0000" >
      <el-menu-item index="/">首页</el-menu-item>
      <el-menu-item index="/Story">品牌故事</el-menu-item>
      <el-menu-item index="/SignDish">招牌美食</el-menu-item>
      <el-menu-item index="/TellUs">行业资讯</el-menu-item>
      <el-menu-item index="/TradeMsg">联系合作</el-menu-item>
    </el-menu>
    <div class="block">
      <el-carousel height="750px">
        <el-carousel-item v-for="item in tubox" :key="item.id">
          <img :src="item.tu" class="tu">
        </el-carousel-item>
      </el-carousel>
    </div>
  </div>

<!--  </div>-->
</template>

<script>
export default {
  data() {
    return {
      activeIndex: '1',
      activeIndex2: '1',
      tubox: [
        { id: 0, tu: require("../assets/tu1.jpg") },
        { id: 1, tu: require("../assets/tu1.jpg") },
        { id: 2, tu: require("../assets/tu1.jpg") },
        { id: 3, tu: require("../assets/tu1.jpg") },
        { id: 4, tu: require("../assets/tu1.jpg") },
        { id: 5, tu: require("../assets/tu2.jpg") }
      ]
    };
  },
  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    }
  }
}
</script>

<style>
*{
  margin:0;
  padding:0;
}
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n+1) {
  background-color: #d3dce6;
}

.tu {
  width: 500px;
  height: 500px;
}
.el-menu-demo{
  margin-left:800px ;
  font-family:"微软雅黑";
  font-size: 18px large;
}
.demo-image {
  margin: 0px 0px;
}
.banner1 {
  width: 100%;
  height: 300px;
}


</style>
